home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / utility / utilcli / vinced.lha / Include / vnc_lib.fd < prev    next >
Text File  |  1996-11-02  |  9KB  |  307 lines

  1. *-----------------------------------------
  2. *-- VNCLibrary                          --
  3. *-- © 1990-96 THOR-Software inc         --
  4. *--                                     --
  5. *-- Library header file Version 3.12    --
  6. *--                                     --
  7. *-- created on 5/2/92 by THOR           --
  8. *-- updated to 2.06 on 3/28/93          --
  9. *-- updated to 2.08 on 4/21/93          --
  10. *-- updated to 2.12 on 6/18/93          --
  11. *-- updated to 2.14 on 6/25/93          --
  12. *-- updated to 2.16 on 9/30/93          --
  13. *-- updated to 2.17 on 10/4/93          --
  14. *-- updated to 2.21 on 11/28/93         --
  15. *-- updated to 2.26 on 1/1/94           --
  16. *-- updated to 2.32 on 2/21/94          --
  17. *-- updated to 3.00 on 3/1/96           --
  18. *-- updated to 3.12 on 10/13/96         --
  19. *-- updated to 3.14 on 11/02/96         --
  20. *-----------------------------------------
  21. ##base _VNCBase
  22. ##bias 42
  23. *---- system entry points
  24. ##private
  25. VNCInputHandler(events,vncbase)(a0/a1)
  26. ##public
  27. VNCRawKeyConvert(event,buffer,length,keymap,mode)(a0/a1,d1/a2,d0)
  28. *---- SnipMap Support
  29. GetVNCSnip()()
  30. SetVNCSnip(snip)(a0)
  31. AddVNCSnipHook(hook)(a0)
  32. RemVNCSnipHook(hook)(a0)
  33. *---- 2 slots reserved here
  34. ##bias 90
  35. *---- global patchable hook control. Don't call it, patch it
  36. InstallGlobalHooks(cn)(a5)
  37. *---- tabexpansion control
  38. SwitchTabExpansion(cn,onoff)(a5,d0)
  39. HandleTabExpansion(cn,len,pos,dir,buf,owner)(a5,d0,d1,d4,a0,a1)
  40. AbortTabExpansion(cn)(a5)
  41. *---- system entry points, continued
  42. ##private
  43. ImVNCInputHandler(events,vncbase)(a0/a1)
  44. VNCPost()()
  45. SysCopySnip(cn)(a5)
  46. SysPasteSnip(cn)(a5)
  47. VNCPreAdd()()
  48. VNCPostRemove()()
  49. *---- CNWindow support
  50. ##public
  51. AddWindow(cn)(a5)
  52. RemWindow(cn)(a5)
  53. LockWindow(cn)(a5)
  54. UnLockWindow(cn)(a5)
  55. AllocCNWindow(cn)(a5)
  56. FreeCNWindow(cn)(a5)
  57. OpenViNCWindow(cn,newwindow)(a5,a0)
  58. CloseViNCWindow(cn)(a5)
  59. ##private
  60. LockList()()
  61. UnLockList()()
  62. ##public
  63. FindCNWindow(filehandle)(d1)
  64. UnFindCNWindow(filehandle)(d1)
  65. *---- Preferences Support
  66. LockPrefs()()
  67. UnLockPrefs()()
  68. SetVNCPrefs(buffer,len)(a0/d0)
  69. GetVNCPrefs(buffer,len)(a0/d0)
  70. GetVNCDefaultPrefs(buffer,len)(a0/d0)
  71. LoadPrefs(buffer,max)(a0/d0)
  72. SetWindowPrefs(cn,buffer,len)(a5,a0/d0)
  73. GetWindowPrefs(cn,buffer,len)(a5,a0/d0)
  74. *--- 2 slots reserved here
  75. ##bias 282
  76. ReduceINPLines(cn,max)(a5,d0)
  77. ReduceUpperLines(cn,max)(a5,d0)
  78. ReduceLowerLines(cn,max)(a5,d0)
  79. LoadPrefsFrom(buffer,max,file)(a0/d0,a1)
  80. List2Prefs(mlist,blist,prefs,mlen,blen,mnum,bnum)(a0,a2,a1,d0,d2,d1,d3)
  81. Prefs2List(mlist,blist,prefs,mlen,blen,mnum,bnum)(a0,a2,a1,d0,d2,d1,d3)
  82. AllocPrefsBuffer()()
  83. FreePrefsBuffer(buf)(a1)
  84. *---- entry points for creating custom windows
  85. DosInitPC()()
  86. MainInitPC()()
  87. MountHandler(name,path,segment,override)(a0/a1,d1,d0)
  88. DisMountHandler(segment)(d1)
  89. AddVNCHook(cn,hook)(a5,a0)
  90. RemVNCHook(cn,hook)(a5,a0)
  91. *---- patchable hooks for window open/close messaging. Don't call them, patch them
  92. SendRequestPattern(cn,pat)(a5,a0)
  93. SendWindowOpens(cn,window)(a5,a0)
  94. SendWindowCloses(cn,window)(a5,a0)
  95. SendWindowQuits(cn)(a5)
  96. ##bias 390
  97. *---- obsolete device support functions, use the pooled functions below !
  98. VNCCreateExtIO(port,size)(a1/d0)
  99. VNCDeleteExtIO(ioreq)(a1)
  100. VNCCreateStdIO(port)(a1)
  101. VNCDeleteStdIO(ioreq)(a1)
  102. VNCCreatePort(name,pri)(a1/d0)
  103. VNCDeletePort(port)(a1)
  104. VNCNewList(list)(a0)
  105. ##private
  106. DelayAWhile(cn)(a5)
  107. ##public
  108. *---- More support functions and hooks, added in 3.0
  109. VNCRequestFile(cn,vncreq)(a5,a0)
  110. *---- Patchable hooks (try if you can do better)
  111. CtrlZSuspend(cn,owner)(a5,a4)
  112. *---- Even more support functions
  113. VNCUniqueID()()
  114. GetNodeN(list,count)(a0,d0)
  115. *---- pooled editor memory management (static and dynamic)
  116. AllocEdMem(cn,bytesize,reqments)(a5,d0/d1)
  117. FreeEdMem(cn,mem)(a5,a1)
  118. AllocLine(cn,size)(a5,d0)
  119. FreeLine(cn,line)(a5,a0)
  120. GetYLine(cn,position)(a5,d0)
  121. GetForcedYLine(cn,position)(a5,d0)
  122. *---- line scrolling
  123. LogicalScrollUp(cn,count)(a5,d0)
  124. LogicalScrollDown(cn,count)(a5,d0)
  125. LogicalRemoveNLines(cn,count,position)(a5,d0/d1)
  126. LogicalInsertNBlankLines(cn,count,position)(a5,d0/d1)
  127. *---- 1.3 callable allocvec functions
  128. VNCAllocVec(bytesize,reqments)(d0,d1)
  129. VNCFreeVec(vec)(a1)
  130. *---- patchable job control hooks
  131. NotifyChOwner(cn,old,new,cmd)(a5,a0,a1,d0)
  132. NotifyClearScreen(cn)(a5)
  133. *---- number conversion and strings
  134. VNCAtoI(strsuccptrptr)(a0)
  135. VNCHtoI(strsuccptrptr)(a0)
  136. VNCStrToL(strsuccptrptr,base)(a0/d0)
  137. ##private
  138. VNCReserved03()()
  139. ##public
  140. VNCItoA(number,buffer)(d0/a0)
  141. ##private
  142. VNCReserved04()()
  143. VNCObsoleteStrLen(str)(a0)
  144. ##public
  145. VNCStrCmp(str1,str2)(a0/a1)
  146. VNCStrICmp(str1,str2,first)(a0/a1,d0)
  147. VNCToUpper(char)(d0)
  148. VNCSPrintf(buffer,strem,fmtstr)(a0/a1/a2)
  149. FilterInput(cn,cursorxptr,buffer)(a5,a0/a1)
  150. *---- 3 slots reserved here
  151. ##bias 636
  152. *---- more support 3.0
  153. PrintSuspend(cn,port,owner)(a5,a0,a4)
  154. *---- scrolling, inserting and deleting
  155. ScrollNLeft(cn,count)(a5,d0)
  156. ScrollNRight(cn,count)(a5,d0)
  157. ScrollNUp(cn,count)(a5,d0)
  158. ScrollNDown(cn,count)(a5,d0)
  159. RemoveNLines(cn,count,position)(a5,d0/d1)
  160. InsertNLines(cn,count,position)(a5,d0/d1)
  161. DeleteLinesDown(cn,position)(a5,d0)
  162. SetTextRange(cn)(a5)
  163. InsertBlock(cn,string,len,pos)(a5,a0/d0,d1)
  164. InsertChar(cn,char,len,pos)(a5,a0/d0,d1)
  165. DeleteChar(cn,size,pos)(a5,d1/d0)
  166. PrintAll(cn)(a5)
  167. *---- 4 slots reserved here
  168. ##bias 738
  169. *---- block functions
  170. BlockStart(cn)(a5)
  171. BlockChange(cn)(a5)
  172. BlockEnd(cn)(a5)
  173. ##private
  174. VNCReserved08()()
  175. ##public
  176. CutBlock(cn)(a5)
  177. CopyBlock(cn)(a5)
  178. PasteBlock(cn)(a5)
  179. PasteCommand(cn)(a5)
  180. HideBlock(cn)(a5)
  181. CopyBlockQuiet(cn)(a5)
  182. VNCMICut(cn)(a5)
  183. VNCMICopy(cn)(a5)
  184. VNCMIPaste(cn)(a5)
  185. VNCMISelectAll(cn)(a5)
  186. CopyBufferToVec(cn)(a5)
  187. RemoveBlock(cn,flags)(a5,d0)
  188. *---- mask functions et al.
  189. GetGlobalRasterMask(cn)(a5)
  190. RemakeRasterLists(cn)(a5)
  191. FlushCopyBuffer(cn)(a5)
  192. *---- more block support 3.0
  193. VNCMICopyQuiet(cn)(a5)
  194. *---- gadget support
  195. HandleGadgets(cn)(a5)
  196. ##private
  197. VNCReserved18()()
  198. VNCReserved19()()
  199. ##public
  200. GetProp(cn,prop,visible,entries)(a5,a0,d0/d1)
  201. SetProp(cn,prop,visible,entries,position)(a5,a0,d0/d1/d2)
  202. GetXProp(cn)(a5)
  203. GetYProp(cn)(a5)
  204. SetXProp(cn)(a5)
  205. SetYProp(cn)(a5)
  206. BuildPropGadget(cn,edprop,type)(a5,a0,d0)
  207. ##private
  208. VNCReserved11()()
  209. ##public
  210. AllocMacro(cn,cmd,num,maxlen)(a5,a0,d0,d1)
  211. AllocButton(cn,cmd,title,num,maxlen,maxtitle)(a5,a0/a1,d0,d1/d2)
  212. *---- 2 slots reserved here
  213. ##bias 948
  214. *---- DOS support functions
  215. VNCReplyPacket(dp,res1,res2)(a0,d0/d1)
  216. AllocAsyncPacket(stream,size)(d0,d1)
  217. QueueOwnerLine(cn,owner,buffer,size)(a5/a4,a0/d0)
  218. PushOwnerLine(cn,owner,buffer,size)(a5/a4,a0/d0)
  219. GetLineData(cn,owner,buffer,size)(a5/a4,a0/d0)
  220. PutLineData(cn,owner,buffer,size)(a5/a4,a0/d0)
  221. VNCLockDeviceList(mode)(d0)
  222. VNCUnLockDeviceList(mode)(d0)
  223. SendAsyncPacket(stream,type,arg1,data,size)(d1,d2,a1,a0/d0)
  224. VNCDoPacket(type,arg1,arg2,arg3,arg4,arg5,arg6,arg7,port)(d0,d1/d2/d3/d4/d5/d6/d7,a0)
  225. *---- line controlling
  226. SaveActual(cn)(a5)
  227. LoadActual(cn)(a5)
  228. ClearActualINP(cn)(a5)
  229. ChangeActualINP(cn,line)(a5,a0)
  230. *---- console hacks
  231. DataToConsole(cn)(a5)
  232. DataFromConsole(cn)(a5)
  233. *---- support functions
  234. SwitchToUser(cn)(a5)
  235. SwitchToDOS(cn)(a5)
  236. *---- job control functions
  237. Foreground(flags,stream)(d0,d1)
  238. Background(flags,stream)(d0,d1)
  239. *---- cursor movement
  240. MoveCursorXY(cn,x,y,flags)(a5,d0/d1,d2)
  241. MoveCursorX(cn,x,flags)(a5,d0,d1)
  242. CursorToLeft(cn)(a5)
  243. CursorToRight(cn)(a5)
  244. DeleteCursorLine(cn,from,to,mask,flags)(a5,d0/d1/d2,d3)
  245. NewSizeWindow(cn)(a5)
  246. SearchWordFWD(cn,flags)(a5,d0)
  247. SearchWordBKWD(cn,flags)(a5,d0)
  248. HandleKeys(cn)(a5)
  249. EmptyWindowPort(cn)(a5)
  250. *---- 4 slots reserved here
  251. ##bias 1152
  252. *---- nenu support
  253. ##private
  254. VNCReserved14()()
  255. ##public
  256. HandleMenu(cn)(a5)
  257. RemoveMenu(cn)(a5)
  258. BuildMenu(cn)(a5)
  259. ##private
  260. VNCReserved20()()
  261. VNCReserved21()()
  262. ##public
  263. RemoveMenuFromWindow(cn)(a5)
  264. AddMenuToWindow(cn)(a5)
  265. BuildMenuStructs(cn,menucommand)(a5,a0)
  266. SetEditItems(cn)(a5)
  267. ConvertString(cn,from,to)(a5,a0/a1)
  268. ##private
  269. VNCReserved22()()
  270. ##public
  271. DoAsciiData(cn,string,len)(a5,a0/d0)
  272. ##private
  273. VNCReserved15()()
  274. VNCReserved16()()
  275. ##public
  276. FreeMacroList(cn,list)(a5,a0)
  277. *---- 3 slots reserved here
  278. ##bias 1266
  279. *---- miscellaneos
  280. PredLine(cn,line)(a5,a2)
  281. SuccLine(cn,line)(a5,a2)
  282. ##private
  283. VNCReserved17()()
  284. ##public
  285. ClearFrame(cn)(a5)
  286. BuildIfNeed(cn)(a5)
  287. DisplayCursor(cn)(a5)
  288. RemoveCursor(cn)(a5)
  289. CmpText(cn,template,pos,cmp)(a5,a0/d0,a1)
  290. SearchToPast(cn)(a5)
  291. SearchToFuture(cn)(a5)
  292. SearchWordFWDPI(cn,flags)(a5,d0)
  293. SearchWordBKWDPI(cn,flags)(a5,d0)
  294. PredStarter(cn,lineptr)(a5,a0)
  295. SuccStarter(cn,lineptr)(a5,a0)
  296. *---- 4 slots reserved here
  297. *---- extended version 3.00 entries: pooled device support
  298. ##bias 1374
  299. PoolCreateExtIO(cn,port,size)(a5,a1/d0)
  300. PoolDeleteExtIO(cn,ioreq)(a5,a1)
  301. PoolCreateStdIO(cn,port)(a5,a1)
  302. PoolDeleteStdIO(cn,ioreq)(a5,a1)
  303. PoolCreatePort(cn,name,pri)(a5,a1/d0)
  304. PoolDeletePort(cn,port)(a5,a1)
  305. *---- 4 slots reserved here
  306. ##end
  307.